package com.example.weexnews;

import android.content.Intent;

import com.taobao.weex.annotation.JSMethod;
import com.taobao.weex.common.WXModule;


public class JumpModule extends WXModule {

    @JSMethod(uiThread = true)
    public void jump(String url) {
        Intent intent = new Intent(mWXSDKInstance.getContext(), WebViewActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.putExtra("url", url);
        mWXSDKInstance.getContext().startActivity(intent);
    }

}
